package com.yanggu.payment.entity.weixinpay.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Date;

@Data
public class WeiXinPayRefundNotify {

    private String mchid;

    @JsonProperty("out_trade_no")
    private String outTradeNo;

    @JsonProperty("transaction_id")
    private String transactionId;

    @JsonProperty("out_refund_no")
    private String outRefundNo;

    @JsonProperty("refund_id")
    private String refundId;

    @JsonProperty("refund_status")
    private String refundStatus;

    @JsonProperty("success_time")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd'T'HH:mm:ss")
    private Date successTime;

    @JsonProperty("user_received_account")
    private String userReceivedAccount;

    private RefundAmount amount;

}